<template>
  <div class="reply_item">
    <div class="user_info">
      <img src="../../../assets/300.jpg" alt="" class="user_avatar">
      <div class="username">{{data.username}}</div>
      <div class="email">{{data.email}}</div>
    </div>
    <div class="content">
      {{data.content}}
    </div>
    <div class="operation">
      <div class="like">
        <font-awesome-icon icon="heart" />
        <span>0</span>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  data: {
    type: Object,
    require: true,
    default: {}
  }
})
</script>

<style scoped>
.reply_item {
  margin: 20px 0;
}

.user_info {
  height: 60px;
  font-size: 17px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-left: 70px;
}

.user_avatar {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background-color: #999999;
  border-radius: 50%;
  overflow: hidden;
}

.email {
  font-size: 15px;
  color: #999999;
}

.content {
  margin-top: 10px;
  padding-left: 70px;
}

.operation {
  padding-left: 70px;
  margin-top: 10px;
  color: #999999;
}

.like {
  display: flex;
  align-items: center;
}

.like span {
  margin-left: 5px;
}
</style>